From 545f0bd82088f4b50267071a51f60cbc841cc5e8 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Sun, 18 Mar 2001 22:08:38 +0000 Subject: [PATCH] Finally getting around to checkin per Havoc. This is the fix for bug Finally getting around to checkin per Havoc. This is the fix for bug 51782. 2001-03-18 Mike Kestner * make-inline-pixbuf.c (main): Added logic to remove output when failures occur. --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/make-inline-pixbuf.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 5cf930a817..feb54700ec 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2001-03-18 Mike Kestner + + * make-inline-pixbuf.c (main): Added logic to remove output when + failures occur. + 2001-03-14 Havoc Pennington * Makefile.am (gdk-pixbuf-marshal.c): Use different temporary file diff --git a/gdk-pixbuf/make-inline-pixbuf.c b/gdk-pixbuf/make-inline-pixbuf.c index d0e41a24a1..65e1ed6f2d 100644 --- a/gdk-pixbuf/make-inline-pixbuf.c +++ b/gdk-pixbuf/make-inline-pixbuf.c @@ -150,6 +150,7 @@ main (int argc, char **argv) { gboolean ext_symbols = FALSE; FILE *outfile; + gchar *outfilename; int i; g_type_init (0); @@ -175,6 +176,7 @@ main (int argc, char **argv) exit (1); } + outfilename = argv[i]; ++i; fputs ("/* This file was automatically generated by the make-inline-pixbuf program.\n" @@ -198,7 +200,8 @@ main (int argc, char **argv) if (pixbuf == NULL) { fprintf (stderr, "%s\n", error->message); - + fclose (outfile); + remove (outfilename); exit (1); } -- 2.30.2